import React, { Component } from 'react';
import './InputSearch.scss'
import MyInput from '../MyInput';
import { withRouter } from 'react-router-dom'

class InputSearch extends Component {
    handle() {
        this.props.history.push('/search')
    }
    render() {
        return (
            <div className="content">
                <h1>cdf 会员购</h1>
                <span className='size'>足 不 出 户  尊 享 全 球 奢 品</span>
                <div className='input'>
                    <MyInput></MyInput>
                    <span onClick={() => { this.handle() }}>客服</span>
                </div>
            </div>
        );
    }
}

export default withRouter(InputSearch);